package cc.uncarbon.module.appapi.model.request;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

@Data
public class PrepayRequestDTO {
    @JsonProperty("appid")
    private String appId;

    @JsonProperty("mchid")
    private String mchId;

    private String description;

    @JsonProperty("out_trade_no")
    private String outTradeNo;

    private Amount amount;

    private Payer payer;

    @JsonProperty("notify_url")
    private String notifyUrl;

    @Data
    public static class Amount {
        private Integer total;
        private String currency = "CNY";
    }

    @Data
    public static class Payer {
        private String openid;
    }
}
